package com.itechart.watchfacts.domain;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: E.Krasnotschek
 * Date: 7/22/13
 * Time: 7:10 AM
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "SEARCH_ENTRY")
public abstract class SearchEntry {

    @Id
    @Column(name = "ID")
    private int id;
    
    @ManyToOne()
    @JoinColumn(name = "BRAND_ID")
    private Brand brand;
    
    @Column(name = "START_PRICE")
    private BigDecimal startPrice;
    
    @Column(name = "END_PRICE")
    private BigDecimal endPrice;
    
    @Column(name = "MODEL")
    private String model;

    public int getId() {
        return id;
    }

    public Brand getBrand() {
        return brand;
    }

    public void setBrand(Brand brand) {
        this.brand = brand;
    }

    public BigDecimal getStartPrice() {
        return startPrice;
    }

    public void setStartPrice(BigDecimal startPrice) {
        this.startPrice = startPrice;
    }

    public BigDecimal getEndPrice() {
        return endPrice;
    }

    public void setEndPrice(BigDecimal endPrice) {
        this.endPrice = endPrice;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }
}
